<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>过滤器-数字</title>
    <script type="text/javascript" src="../libs/angular/angular.min.js"></script>
</head>
<body ng-app>
	<!-- 将字符串转化为数据 -->
    <h1>{{ "3456789" | number}}</h1>
    <!-- 将数据格式化为 3 位小数，结果为 12345678.000-->
    <h1>{{ 12345678 | number:3}}</h1>
</body>
</html>
